package com.lx.web.servlet;


import com.lx.bean.Forum;
import com.lx.service.ForumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/forum")
public class ForumController {
    @Autowired
    ForumService forumService;

    @RequestMapping("/findall")
    public @ResponseBody
    List<Forum> selectAllForum() {
        return forumService.selectAllForum();
    }

}
